from multiprocessing import Pool
import time
import os

def sing():
    for i in range(3):
        print('hhh')
        print(os.getpid())
    print(os.getppid())

def dance():
    for i in range(3):
        print('www')
        print(os.getpid())
        time.sleep(2)


if __name__ == '__main__':
    print('开始')
    po = Pool()
    for i in [sing, dance]:
        po.apply_async(i)

    po.close()
    po.join()

    print('js')
